package com.beyond.trace.domain.warn;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName: WarnRecord
 * @author: z越
 * @date: 2023/2/24  9:35
 * @description 预警记录实体表
 */
@Data
public class WarnRecord {
    /**主键id*/
    @TableId(type= IdType.AUTO)
    private Long id;
    /**预警类型*/
    private String warnType;
    /**设备名称*/
    private String deviceName;
    /**预警等级*/
    private String warnGrade;
    /**预警时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warnTime;
    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**预警规则id*/
    private Long warnId;
    /**预警值*/
    private String warnValue;
    /**部门*/
    private String departId;

}
